package com.rd.student.ruanjian.class1.duhang.New00;

public class Cat extends Animal{
    String eyeColor;

    public Cat(String name, String eyeColor) {
        super(name);
        this.eyeColor = eyeColor;
    }

    public String getEyeColor() {
        return eyeColor;
    }

    public void setEyeColor(String eyeColor) {
        this.eyeColor = eyeColor;
    }

    @Override
    public String toString() {
        return "小猫" +
                "名字是" + name  +
                ", 眼睛是" + eyeColor;
    }

    @Override
    public void voice() {
        System.out.println( getName() + "笑一笑 , " + getName()+"有"+eyeColor);
    }


    @Override
    public void enjoy() {
        System.out.println(name + "喵喵");
    }


}
